<script setup>
defineProps({
  title: String
})
</script>
<template>
  <div class="cart-page">
    <el-card style="max-width: 100%">
      <template #header>
        <span>{{ title }}</span>
        <slot name="header-right"></slot>
      </template>
      <slot name="default"></slot>
    </el-card>
  </div>
</template>
<style lang="scss" scoped>
.cart-page {
  height: 90%;
  background-color: aquamarine;
  display: flex;
  justify-content: center;
  .el-card {
    flex: 1;
    :deep(.el-card__header) {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    :deep(.el-card__body) {
      // background-color: aquamarine;
      height: 81%;
    }
  }
}
</style>
